package net.xdclass.service;

import net.xdclass.model.ProductMessage;
import net.xdclass.request.LockProductRequest;
import net.xdclass.utils.JsonData;
import net.xdclass.vo.ProductVO;

import java.util.List;
import java.util.Map;

public interface ProductService {
    Map<String, Object> page(int page, int size);

    ProductVO detail(long id);

    List<ProductVO> findProductsByIdBatch(List<Long> productIdList);

    JsonData lockProductStock(LockProductRequest lockProductRequest);

    boolean releaseProductStock(ProductMessage productMessage);
}
